<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/lang/zh-cn/zh-cn.js"></script>

<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">团购信息</h1>
    </div>

    <!-- add form -->
    <form action="{:url('update',['id'=>$id])}" method="post" id="tab" enctype="multipart/form-data">
       
        <div class="tab-content">
            <div class="tab-pane fade in active" id="basic">
                <div class="well">
                        <label>团购标题：</label>
                        <input type="text" name="title" value="{$data.title}" class="input-xlarge">
                        <label>开始时间：</label>
                        <input name="start" type="date" value="{$data.start}"/>
                        <label>结束时间：</label>
                        <input name="end" type="date" value="{$data.end}"/>
                        <label>团购内容：</label>
                        <textarea id="editor" name="content" style="width:800px;height:500px;" class="input-xlarge">{$data.content}</textarea>
                </div>
            </div>
           
            <button class="btn btn-primary" type="submit">保存</button>
            <button class="btn btn-primary"><a style="color:#fff;" href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='{:url(\'admin/tuan/delete\',[\'id\'=>$id])}'">
                删除 </a></button>
        </div>
    </form>

    <script type="text/javascript">
        $(function () {
            UE.getEditor('editor');
            
        });
    </script>